const std = @import("std");

pub fn build(b: *std.Build) void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});

    // riscv registers module
    const riscv = b.dependency("riscv", .{
        .target = target,
        .optimize = optimize,
    });

    // re-export csr module
    b.modules.put(b.dupe("riscv"), riscv.module("riscv")) catch unreachable;
}
